Matthias Clasen [Thu, 18 Jun 2015 21:08:09 +0000 (17:08 -0400)]
GtkSearchEngine: Remove unused code
Nothing ever uses or emits the hits-subtracted signal.
Nautilus dropped it a few years ago. Time to follow suit.
Matthias Clasen [Thu, 18 Jun 2015 19:18:30 +0000 (15:18 -0400)]
Use infos from search engine instead of getting them again
When the search engine provides hits with GFileInfo, use that
to add the hits to the model directly, without going through
another round of async get_info calls.
To do this, we add a batched variant of the
_gtk_file_system_model_update_file call that takes lists of
GFiles and GFileInfos. Again, we can avoid repeated resorting
that happens when the files are updated individually.
Matthias Clasen [Thu, 18 Jun 2015 19:14:54 +0000 (15:14 -0400)]
Fix an oversight in the previous commit
We lost the line marking the search model as non-empty, causing
us to show the 'no results' page despite there being results.
Matthias Clasen [Thu, 18 Jun 2015 18:37:23 +0000 (14:37 -0400)]
Request the right attributes in the simple search engine
This change makes it so that the file info passed along
from the simple search engine has all the attributes that
the file system model wants.
Matthias Clasen [Thu, 18 Jun 2015 18:31:02 +0000 (14:31 -0400)]
search engine: Pass file infos along for hits
Matthias Clasen [Thu, 18 Jun 2015 16:20:21 +0000 (12:20 -0400)]
file chooser: Use batched insertion for search results
This helps avoiding excess work when procesing many search
results, as typically happens with short search strings
and recursive search.
https://bugzilla.gnome.org/show_bug.cgi?id=751169
Matthias Clasen [Thu, 18 Jun 2015 16:19:06 +0000 (12:19 -0400)]
file system model: Add batched insertion
Add a batched version of gtk_file_system_model_add_and_query_file
that takes a list of files and avoids resorting the model for each
individual insertion. The querying is still done one-file-at-a-time,
so more optimization is certainly possible.
Emmanuele Bassi [Thu, 18 Jun 2015 15:10:36 +0000 (16:10 +0100)]
Revert "window: Reinstate logic for should_use_csd()"
This reverts commit
f043fd532dc66a7abb1d4ea57c666655330cc429.
The whole point of having can_use_csd() return TRUE when GTK_CSD is
unset is to use it inside enable_csd().
https://bugzilla.gnome.org/show_bug.cgi?id=751140
Emmanuele Bassi [Thu, 18 Jun 2015 13:48:58 +0000 (14:48 +0100)]
window: Reinstate logic for should_use_csd()
The old should_use_csd() function would return FALSE if the GTK_CSD
environment variable is unset; the change in commit
c5e5ee67490e7e7
made it return TRUE if GTK_CSD is unset. This has a cascade effect
on the window size, which causes invalid rectangles to bubble down
to Pixman.
https://bugzilla.gnome.org/show_bug.cgi?id=751140
Timm Bäder [Thu, 18 Jun 2015 13:37:23 +0000 (15:37 +0200)]
gtkdialog: Remove 2px border
Timm Bäder [Thu, 18 Jun 2015 13:36:03 +0000 (15:36 +0200)]
messagedialog: remove 2px border
Timm Bäder [Thu, 18 Jun 2015 09:55:29 +0000 (11:55 +0200)]
filechooserdialog: Remove space between window and content
Was removed in
232d6f84f0495e9effedc16d700fc13f5a6e302.
Jakub Steiner [Thu, 18 Jun 2015 11:08:45 +0000 (13:08 +0200)]
Adwaita: indentation
- lapo was shouting at me.
Lapo Calamandrei [Thu, 18 Jun 2015 10:46:00 +0000 (12:46 +0200)]
Adwaita: volume button and scale button padding
I was assuming that GtkVolumeButton and GtkScaleButton could only
contain a icon, now they get the image-button padding by default,
but if the text-button class is applied it is not overridden.
Lapo Calamandrei [Thu, 18 Jun 2015 10:33:04 +0000 (12:33 +0200)]
Adwaita: scale popup quick fix
Jakub Steiner [Thu, 18 Jun 2015 10:01:12 +0000 (12:01 +0200)]
Adwaita: markup cleanup
- move touch selection selectors to its own section
- use scss style markup for .button common elsewhere
(more compact and legible)
Jakub Steiner [Wed, 17 Jun 2015 11:05:02 +0000 (13:05 +0200)]
HC: touch text selection styling
- sync with Adwaita
- try to avoid using image assets
https://bugzilla.gnome.org/show_bug.cgi?id=750883
Ting-Wei Lan [Thu, 18 Jun 2015 04:14:05 +0000 (12:14 +0800)]
Fix return value error in _gtk_window_get_popover_parent
Matthias Clasen [Thu, 18 Jun 2015 00:24:29 +0000 (20:24 -0400)]
Cosmetic change
Matthias Clasen [Thu, 18 Jun 2015 00:07:24 +0000 (20:07 -0400)]
GtkPlacesSidebar: Fix rtl appearance
Apply the necessary directional variants for asymmetric
css padding.
https://bugzilla.gnome.org/show_bug.cgi?id=751084
Cosimo Cecchi [Tue, 16 Jun 2015 19:02:41 +0000 (12:02 -0700)]
overlay: remove gtk_overlay_add_pass_through_overlay()
The API to access this functionality will be the setter we just added in
the previous commit.
https://bugzilla.gnome.org/show_bug.cgi?id=750568
Cosimo Cecchi [Tue, 16 Jun 2015 19:01:30 +0000 (12:01 -0700)]
overlay: add setters and getters for pass-through child property
This will make the API easier to use from bindings too.
https://bugzilla.gnome.org/show_bug.cgi?id=750568
Cosimo Cecchi [Tue, 16 Jun 2015 18:58:46 +0000 (11:58 -0700)]
docs: add new GtkOverlay methods to gtk3-sections.txt
https://bugzilla.gnome.org/show_bug.cgi?id=750568
Alexander Larsson [Wed, 17 Jun 2015 15:35:18 +0000 (17:35 +0200)]
configure: test have_docbook_style != yes, not have_docbook_dtd
Matthias Clasen [Wed, 17 Jun 2015 10:09:59 +0000 (06:09 -0400)]
file chooser: Drop unused variables
Matthias Clasen [Wed, 17 Jun 2015 03:46:34 +0000 (23:46 -0400)]
file chooser: Use a revealer
Use a revealer to manage the visibility of the header area where
we show the pathbar, the location entry or search. This is a bit
smoother, and makes search more similar to a search bar.
Carlos Garnacho [Wed, 17 Jun 2015 13:58:55 +0000 (15:58 +0200)]
texthandle: Avoid double rendering of background/frame
gtk_render_handle() already renders background/frame itself, avoid
doing this twice.
Carlos Garnacho [Mon, 15 Jun 2015 12:07:40 +0000 (14:07 +0200)]
gtkmain: Ignore grab for events in child popovers
Popovers may be spawn when there's GTK+ grabs somewhere else (eg.
text selection popover/handles in an entry in a modal popover). When
this happens, events go to the grab widget (in this case the modal
popover) and are effectively ignored by the event widget, even though
it's can be conceptually a child of the grab widget.
To get away with this, tweak a bit gtk_main_do_event(), so events going
to popovers that are related to grab_widget or a child of it are received,
as it would happen with regular children of grab_widget.
https://bugzilla.gnome.org/show_bug.cgi?id=750993
Carlos Garnacho [Mon, 15 Jun 2015 12:05:00 +0000 (14:05 +0200)]
window: Add concept of popover "parent"
This will be the widget that the popover relates to (::pointing-to in
GtkPopover, ::parent in GtkTextHandle).
Additional API to check the popover/parent relationship between widgets
has been added, which will be useful wherever this is necessary in a
generic manner.
https://bugzilla.gnome.org/show_bug.cgi?id=750993
Ting-Wei Lan [Wed, 17 Jun 2015 10:01:48 +0000 (18:01 +0800)]
Fix return value error in gdk_window_set_pass_through
https://bugzilla.gnome.org/show_bug.cgi?id=751099
Jonas Ådahl [Wed, 17 Jun 2015 09:31:19 +0000 (17:31 +0800)]
wayland: Always request transient commit when mapping subsurface
A subsurface positioning operation only takes effect when the parent
surfaces state is applied. If a subsurface is mapped and positioned, but
the parent surface state is not immediately committed, the relative
position of the subsurface is undefined and may be placed incorrectly.
To avoid this undefined state, always request that the parent surface
should be committed after mapping a subsurface so that the position
operation will take effect.
https://bugzilla.gnome.org/show_bug.cgi?id=751098
Christian Hergert [Tue, 16 Jun 2015 23:50:44 +0000 (16:50 -0700)]
treeview: always pixelcache widget contents
GtkTreeView has a particularly expensive drawing path. This can cause
issues when part of animated widget sequences. Caching the content while
a model is attached helps reduce the number of full redraws during
exposure greatly.
https://bugzilla.gnome.org/show_bug.cgi?id=751082
Christian Hergert [Tue, 16 Jun 2015 23:46:24 +0000 (16:46 -0700)]
pixelcache: allow widgets to always require cached content
Some widgets have very expensive drawing paths. So caching the content
can be useful even when not scrolling.
This can help speed up widgets that are part of animation sequences and
thereby go through spurious expose events.
https://bugzilla.gnome.org/show_bug.cgi?id=751082
Yosef Or Boczko [Wed, 17 Jun 2015 00:24:12 +0000 (03:24 +0300)]
Updated Hebrew translation
Christian Hergert [Tue, 16 Jun 2015 21:40:09 +0000 (14:40 -0700)]
gdkwindow: avoid updating background pattern if it matches previous
Background patterns are often updated when style changes. In many cases,
the new pattern will match the previous. We can optimize out the
invalidation that will occur upon resetting the same pattern.
Carlos Soriano [Tue, 16 Jun 2015 14:54:24 +0000 (16:54 +0200)]
gtkplacessidebar: improve variable name
Carlos Soriano [Tue, 16 Jun 2015 14:25:33 +0000 (16:25 +0200)]
gtkplacessidebar: Remove some old comments
We didn't made up our minds until now from some of them, and for
the others no progress has been made or bugs reported, so probably
they are fine.
Carlos Soriano [Wed, 6 May 2015 21:07:17 +0000 (23:07 +0200)]
gtkplacesidebar: use GtkListBox
We were using GTkTreeView in a simple list. Also, as we know,
GtkCellRenderers are not the best way to theme and manipulate
widgets.
So instead use a GtkListBox to modernize the GtkPlacesSidebar,
and in the way clean up some parts of the code (like headings)
which were not used anymore.
Also we don't use a model anymore, since the data is simple
enough to manage it in a subclass of the row itself.
Carlos Soriano [Mon, 8 Jun 2015 17:01:45 +0000 (19:01 +0200)]
theme: decrease list row transition
It was somewhat annoying given the "trace" of it. Decrease
the time to avoid too much "trace"
Carlos Soriano [Sat, 11 Apr 2015 15:36:41 +0000 (17:36 +0200)]
gtkfilechooserwidget: show drop hints on gtkplacessidebar
Now with the API addition on gtkplacessidebar, we can show some
hints for the drop targets.
https://bugzilla.gnome.org/show_bug.cgi?id=747793
Carlos Soriano [Mon, 11 May 2015 17:12:32 +0000 (19:12 +0200)]
gtkplacessidebar: make insensitive invalid drop targets
https://bugzilla.gnome.org/show_bug.cgi?id=747793
Carlos Soriano [Sat, 11 Apr 2015 15:46:59 +0000 (17:46 +0200)]
gtkplacessidebar: add new bookmark icon
Following design mockups
https://bugzilla.gnome.org/show_bug.cgi?id=747793
Carlos Soriano [Thu, 11 Jun 2015 16:55:24 +0000 (18:55 +0200)]
gtkplacesidebar: remove obsolete drop state
We didn't use those for some time now.
Carlos Soriano [Sat, 11 Apr 2015 15:35:23 +0000 (17:35 +0200)]
gtkplacessidebar: add API for show drop hints
It is convenient to allow applications to show all the drop
targets at once. This improves the user experience with drag
an drop.
The new API allows the application to set the gtkplacessidebar
in a mode where invalid drop targets are insensitive and it
adds a "new bookmark" row. This mode is intended to be set
when the application is aware of a dnd operation and needs to
be stopped kwhen the application is aware that dnd operation
was cancelled or ended in a different part than gtkplacesisdebar.
The context parameter is unused in this patch, but will be
used in next patches when the sidebar will use a GtkListBox.
The reason of being unused now is just convenience.
https://bugzilla.gnome.org/show_bug.cgi?id=747793
Carlos Soriano [Sat, 11 Apr 2015 11:53:18 +0000 (13:53 +0200)]
gtkplacessidebar: new bookmark row only at first position
Following the new mockups, put the new bookmark row always
in the first position, so it's easier to drop an item.
https://bugzilla.gnome.org/show_bug.cgi?id=747793
Matthias Clasen [Mon, 15 Jun 2015 23:46:33 +0000 (19:46 -0400)]
Deal with events from wrong display
GtkInspector is opening a separate display connection, which makes
it more likely that gtk_get_current_event() returns an event from
the "wrong" display.
Matthias Clasen [Mon, 15 Jun 2015 23:42:47 +0000 (19:42 -0400)]
GtkMenuButton: Make programmatic toggling work again
This was broken in
0796d7b6ff9393746d.
https://bugzilla.gnome.org/show_bug.cgi?id=751018
Matthias Clasen [Mon, 15 Jun 2015 22:54:13 +0000 (18:54 -0400)]
GtkMenuButton: Avoid direct button access
We were getting ourselves in trouble by casting touch events
to GdkEventButton and poking directly at their internals. Instead,
use GdkEvent API to get what we need.
This fixes a crash when using the gear menu in epiphany with
touch. The same crash also occurred in testmenubutton.
Alexander Larsson [Mon, 15 Jun 2015 14:32:50 +0000 (16:32 +0200)]
gtkoverlay: Fix issues with remove
The iteration now progresses past a delete, so make sure we iterate
safely. Also, don't chain up if we removed a child.
Alexander Larsson [Mon, 15 Jun 2015 09:00:40 +0000 (11:00 +0200)]
testoverlay: Fix indentation
Alexander Larsson [Tue, 9 Jun 2015 08:23:19 +0000 (10:23 +0200)]
testoverlay: Add test for overlay z ordering
https://bugzilla.gnome.org/show_bug.cgi?id=750568
https://bugs.freedesktop.org/show_bug.cgi?id=90917
Alexander Larsson [Mon, 8 Jun 2015 14:30:40 +0000 (16:30 +0200)]
testoverlay: Fix test by using add_pass_through_overlay
https://bugzilla.gnome.org/show_bug.cgi?id=750568
https://bugs.freedesktop.org/show_bug.cgi?id=90917
Alexander Larsson [Tue, 9 Jun 2015 08:26:31 +0000 (10:26 +0200)]
GtkOverlay: Add support for input pass-through overlays
For these widgets we set pass-through on the child window so that
input over these widgets (that are not on a child input window) goes
to the window below the overlay.
https://bugzilla.gnome.org/show_bug.cgi?id=750568
https://bugs.freedesktop.org/show_bug.cgi?id=90917
Alexander Larsson [Mon, 8 Jun 2015 14:28:32 +0000 (16:28 +0200)]
overlay: Add reorder_overlay()
This allows you to control the z-ordering of overlay children
https://bugzilla.gnome.org/show_bug.cgi?id=750568
https://bugs.freedesktop.org/show_bug.cgi?id=90917
Alexander Larsson [Mon, 8 Jun 2015 13:36:43 +0000 (15:36 +0200)]
gdk: Add gdk_window_set_pass_through
An pass_through window is something you can draw in but does not
affect event handling. Normally if a window has with no event mask set
for a particular event then input events in it go to its parent window
(X11 semantics), whereas if pass_through is enabled the window below
the window will get the event. The later mode is useful when the
window is partially transparent. Note that an pass-through windows can
have child windows that are not pass-through so they can still get events
on some parts.
Semantically, this behaves the same as an regular window with
gdk_window_set_child_input_shapes() called on it (and re-called any
time a child is changed), but its far more efficient and easy to use.
This allows us to fix the testoverlay input stacking test.
https://bugzilla.gnome.org/show_bug.cgi?id=750568
https://bugs.freedesktop.org/show_bug.cgi?id=90917
Alexander Larsson [Mon, 8 Jun 2015 13:31:02 +0000 (15:31 +0200)]
testoverlay: Add new input stacking test
In this case we have a bunch of interactive main children
of the overlay, and then a centered overlay that contains both
non-interactive (labels) and interactive (entry) widgets.
This shows off a problem where the non-interactive parts (the labels)
steals input from the overlay main children (breaks button click and
hover effects).
https://bugzilla.gnome.org/show_bug.cgi?id=750568
https://bugs.freedesktop.org/show_bug.cgi?id=90917
Daniel Mustieles [Mon, 15 Jun 2015 08:55:00 +0000 (08:55 +0000)]
Updated Spanish translation
Dimitris Spingos [Mon, 15 Jun 2015 08:14:00 +0000 (11:14 +0300)]
Updated Greek translation
Benjamin Otte [Mon, 15 Jun 2015 02:30:50 +0000 (04:30 +0200)]
stylecontext: Change fallback behavior on state mismatch
For functions that take state flags as an argument we need to special
case the situation where the passed in flags don't match the current
state.
Previously we would create a copy of the style info, change its state
and do the lookup from there.
Now that GtkCssNode has replaced style infos, this doesn't work as well
anymore as copying a GtkCssNode is not possible.
However, unike style infos, GtkCssNodes are instant-apply, so we don't
need to copy anymore, we can just change the state of the node.
This causes some invalidations to be queued, but we can take that
performance hit as this is fallback code.
https://bugzilla.redhat.com/show_bug.cgi?id=
1228852
Matthias Clasen [Mon, 15 Jun 2015 01:37:58 +0000 (21:37 -0400)]
widget-factory: Make the circular button do something
Matthias Clasen [Mon, 15 Jun 2015 01:30:01 +0000 (21:30 -0400)]
testassistant: Remove padding from the filechooser page
This tests the new assistant api to remove padding from
pages.
Matthias Clasen [Mon, 15 Jun 2015 01:29:09 +0000 (21:29 -0400)]
GtkAssistant: Add a way to have pages without padding
This can be useful when embedding complex widgets like
a file chooser as a page.
https://bugzilla.gnome.org/show_bug.cgi?id=750631
Matthias Clasen [Mon, 15 Jun 2015 01:05:49 +0000 (21:05 -0400)]
Add a filechooser-in-assistant example
This is one of the cases where one wants a page without
any padding.
Matthias Clasen [Mon, 15 Jun 2015 01:04:15 +0000 (21:04 -0400)]
GtkAssistant: Redo page margins
Instead of having padding outside the notebook containing
all pages, put each page in an extra box and add the padding
there. This is in preparation for allowing pages without
padding.
Matthias Clasen [Fri, 12 Jun 2015 10:35:23 +0000 (06:35 -0400)]
assistant: Drop hardcoded padding
This means the pages themselves will be responsible for setting
suitable padding.
https://bugzilla.gnome.org/show_bug.cgi?id=750631
Jordi Mas [Sun, 14 Jun 2015 06:32:03 +0000 (08:32 +0200)]
Fixes to Catalan translation
Matthias Clasen [Sun, 14 Jun 2015 03:00:41 +0000 (23:00 -0400)]
Only build testfontchooserdialog on linux
We are using this to test pango functionality that
uses fontconfig apis, so this doesn't build on OS X
or Windows anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=750892
Matthias Clasen [Sun, 14 Jun 2015 02:32:05 +0000 (22:32 -0400)]
color editor: make popups toggleable
The popups on the color editor are somewhat hard to get rid of.
Arrange things so that clicking the same control again dismisses
the current popup.
Matthias Clasen [Sun, 14 Jun 2015 01:57:07 +0000 (21:57 -0400)]
Don't show a menu on the color editor swatch
There's nothing to customize here, so no need to show a menu.
Matthias Clasen [Sun, 14 Jun 2015 01:56:41 +0000 (21:56 -0400)]
Add a way to avoid menu on color swatches
Matthias Clasen [Sat, 13 Jun 2015 21:57:19 +0000 (17:57 -0400)]
Avoid uninitialized variables
clang complains that these may be used uninitialized.
Matthias Clasen [Sat, 13 Jun 2015 21:57:09 +0000 (17:57 -0400)]
entry: Drop an unused variable
Matthias Clasen [Sat, 13 Jun 2015 21:56:55 +0000 (17:56 -0400)]
Drop an unused variable
Matthias Clasen [Sat, 13 Jun 2015 21:49:54 +0000 (17:49 -0400)]
Remove unused variables
Matthias Clasen [Sat, 13 Jun 2015 21:49:20 +0000 (17:49 -0400)]
Ensure a variable is initialized
clang complained about transient_for being used uninitialized.
Matthias Clasen [Sat, 13 Jun 2015 21:49:06 +0000 (17:49 -0400)]
Remove an unused variable
Matthias Clasen [Sat, 13 Jun 2015 21:47:56 +0000 (17:47 -0400)]
broadway: Avoid compiler warnings
clang doesn't like self-assignment.
Matthias Clasen [Sat, 13 Jun 2015 20:57:32 +0000 (16:57 -0400)]
GtkColorEditor: Remove old todo
Most of this is done, and the rest will not happen because
of this note.
Matthias Clasen [Sat, 13 Jun 2015 17:45:57 +0000 (13:45 -0400)]
widget-factory: More popover examples
Add an example for text input in a popover. This leads to nested
popovers with touch selection, and does not currently work.
Matthias Clasen [Sat, 13 Jun 2015 16:02:33 +0000 (12:02 -0400)]
widget-factory: Add horizontally linked entries
It happens in some places, so artists need an example to
make it look good.
Ting-Wei Lan [Sat, 13 Jun 2015 05:45:57 +0000 (13:45 +0800)]
Fix 'void function should not return void expression' warning for clang
https://bugzilla.gnome.org/show_bug.cgi?id=750888
Ting-Wei Lan [Sat, 13 Jun 2015 05:44:24 +0000 (13:44 +0800)]
Fix return value error in _gtk_text_handle_set_direction
https://bugzilla.gnome.org/show_bug.cgi?id=750888
Matthias Clasen [Sat, 13 Jun 2015 03:55:30 +0000 (23:55 -0400)]
Redo font map support in GtkFontChooser
We can't add properties to the interface, since it breaks
3rd party implementations of the GtkFontChooser interface.
These exist, for example in gnumeric.
So, instead of a new property, add getter/setter vfuncs.
Benjamin Otte [Fri, 12 Jun 2015 19:23:34 +0000 (21:23 +0200)]
fontchooser: Don't cause "row-changed" signal in cell data func
The font chooser delays creating the font description from the font face
as long as possible (it's slow). Because we use fixed height mode, we
only have to create font descriptions for rows we are actually going to
show.
This was achieved by looking at the font description column and if it
was NULL, we created a font description and gtk_list_stiore_set() it.
Unfortunately this caused a "row-changed" signal to be emitted and this
emission could happen during the cell data func.
And that caused infinite loops with accessibility when you were unlucky.
This change replaces the NULL font description with an empty one and
instead of setting the correct font description, we
pango_font_description_merge() it in. This way, the list store doesn't
change and no signals are emitted.
https://bugzilla.redhat.com/show_bug.cgi?id=
1197267
Carlos Garnacho [Fri, 12 Jun 2015 13:05:33 +0000 (15:05 +0200)]
popover: Avoid hiding modal popovers if another popover is taking focus
Due to popover modality itself, there's quite high chances the popover
stealing focus has been triggered from within, so stay friendly to it.
Hiding the popover here will only hide the grabbing popover too if this
happens.
https://bugzilla.gnome.org/show_bug.cgi?id=750741
Carlos Garnacho [Fri, 12 Jun 2015 13:03:41 +0000 (15:03 +0200)]
window: Avoid rising the window of already shown popovers
This breaks stacking, as popovers are repositioned sort of frequently
(even more after show/hide animations).
https://bugzilla.gnome.org/show_bug.cgi?id=750741
Cosimo Cecchi [Thu, 11 Jun 2015 03:21:57 +0000 (20:21 -0700)]
reftests: fix style class syntax in CSS file
Fixes reftests.
https://bugzilla.gnome.org/show_bug.cgi?id=750605
Cosimo Cecchi [Thu, 11 Jun 2015 03:52:14 +0000 (20:52 -0700)]
testsuite: add a test for non-square symbolic icons
To verify the previous fix.
https://bugzilla.gnome.org/show_bug.cgi?id=750605
Cosimo Cecchi [Mon, 8 Jun 2015 23:35:31 +0000 (16:35 -0700)]
icontheme: don't modify symbolic SVG dimensions when recoloring
When recoloring symbolic SVG, do not modify the original width and
height of the passed-in file; the function later will scale the image
through gdk_pixbuf_new_from_stream_at_scale(), but we should still
use the original size to create the proxy SVG, or the image will
possibly be doubly-resized or blurry.
https://bugzilla.gnome.org/show_bug.cgi?id=750605
Matthias Clasen [Fri, 12 Jun 2015 12:26:18 +0000 (08:26 -0400)]
recent chooser: Make it expand
It is expected that the list fills the available space.
https://bugzilla.gnome.org/show_bug.cgi?id=750690
Carlos Garnacho [Fri, 12 Jun 2015 11:30:34 +0000 (13:30 +0200)]
entry: Ensure we unset the magnifier widget on ::destroy
Otherwise there's dangling signal handlers which cause warnings
at the time we attempt to disconnect these.
Carlos Garnacho [Fri, 12 Jun 2015 11:04:45 +0000 (13:04 +0200)]
textview: Set handles' mode to "none" if showing the bubble
show_or_hide_handles() tries to disable visibility when the popover is
shown, although it triggers a bit late, and lets the handles flash briefly
if both popover and handles try to show at the same time (eg. when
pressing on the selection of a previously unfocused textview, the handles
were previously hidden, so they try to show again on focus in).
Carlos Garnacho [Fri, 12 Jun 2015 10:45:03 +0000 (12:45 +0200)]
textview: Perform tougher handle visibility checks after hiding the popover
The handles might fall outside the visible area, and shouldn't be shown
then. Just call gtk_text_view_update_handles() which will perform these
checks, and keep the handle conveniently hidden.
This was leading to unexpectedly visible handles (and in the
wrong/previous position, the handle code doesn't relocate the widget
it's about to hide) when "select all" was selected in the popover on
a textview needing scrollbars.
and extending the selection beyond the view above and/or below.
Carlos Garnacho [Fri, 12 Jun 2015 09:59:47 +0000 (11:59 +0200)]
popover: Be lenient wrt visibility of popovers too close to widget borders
The check used to hide the popover if the pointed area fell partly out of
the widget allocation, textviews now can trigger that with text selections
too close to the visible edge, as a small extra area around is now reserved.
The check has been changed to only hide the popover if the pointed area
falls completely outside the widget allocation.
Carlos Garnacho [Thu, 11 Jun 2015 15:10:54 +0000 (17:10 +0200)]
texthandle: Remove knowledge about window borders
We need to expand beyond these if necessary, so don't artificially
limit things here.
Carlos Garnacho [Wed, 10 Jun 2015 19:02:34 +0000 (21:02 +0200)]
window: Allow more space at edges for popovers
We're clamping to the visible window edge, which misplaces text handles.
Carlos Garnacho [Thu, 11 Jun 2015 14:18:02 +0000 (16:18 +0200)]
entry: Set text direction information on text handles
This way the handles point to the right side on the presence of rtl/ltr
text.
Carlos Garnacho [Wed, 10 Jun 2015 18:53:12 +0000 (20:53 +0200)]
textview: set text direction information on text handles
This makes them point to the correct place, given the theme supports
this.
Carlos Garnacho [Wed, 10 Jun 2015 18:52:02 +0000 (20:52 +0200)]
texthandle: Handle ltr/rtl positioning
This setting is per handle, as is dependent on the selected text, rather
than the locale.
Carlos Garnacho [Wed, 10 Jun 2015 18:54:09 +0000 (20:54 +0200)]
Adwaita: support rtl on text handles
Just use the opposite variant for the opposite LTR side.